<?php

use Illuminate\Database\Seeder;

class TicketTalentAuditTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('wy_ticket_talent_audit')->truncate();
        for ($i = 1; $i < 20; $i++) {
            DB::table('wy_ticket_talent_audit')->insert([
                'name'        => '李' . $i,
                'mobile'      => '152' . rand(10000000, 99999999),
                'age'         => rand(20, 50),
                'sex'         => rand(0, 2),
                'education'   => rand(1, 5),
                'position_id' => rand(1, 5),
                'referrer_id' => rand(1, 30),
                'merchant_id' => rand(1, 5),
                'status'      => rand(0, 6),
                'created_at'  => date('Y-m-' . rand(1, 30) . ' H:i:s')
            ]);
        }
    }
}
